package com.application.bisabahasakorea;

import com.application.bisabahasakorea.MenuPerkenalanAdapter;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;


public class MenuPerkenalanActivity extends ListActivity{
	
	static final String[] MENU = new String[] {"Percakapan","Kosa Kata"};
	
	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		
		setListAdapter(new MenuPerkenalanAdapter(this, MENU));
		
	}
	

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id){
		
		switch (position){
		case 0 :
			Intent intent = new Intent(this, PerkenalanActivity.class);
			startActivity(intent);
			break;
		case 1 :
			Intent intent1 = new Intent(this, KosakataPerkenalanActivity.class);
			startActivity(intent1);
			break;
		}
		
	}
	
}
